package com.ruoyi.StarStudio.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 抢购商品实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PanicBuyingGoods {

    private long panic_buying_goods_id; //抢购商品ID
    private long goods_id; //商品ID
    private int panic_buying_price; //抢购价（鲜豆）
    private int panic_buying_goods_stock; //抢购商品库存
    private Timestamp panic_buying_start_time; //抢购开始时间
    private Timestamp panic_buying_end_time; //抢购结束时间
    private int panic_buying_status; //0未开始 1进行中 2已结束
    private boolean del_flag; //删除标志（ 0未删除，1已删除）

    Map<String,Object> params; //请求参数

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
